From b2a010ac33bbfdc4574e64b793643dd6537339cf Mon Sep 17 00:00:00 2001 From: Jerome Jamnicky Date: Tue, 6 Jul 2004 00:25:10 +0000 Subject: [PATCH] Some updates to make it friendlier to non-Wikimedia sites. Removed obsolete code and $patterns. Changed include to commandLine.inc from the obsolete liveCmdline.inc. --- irc/rcdumper.php | 66 ++++++++++++++++++------------------------------ 1 file changed, 25 insertions(+), 41 deletions(-) diff --git a/irc/rcdumper.php b/irc/rcdumper.php index 0c80775894..76ff91db8a 100644 --- a/irc/rcdumper.php +++ b/irc/rcdumper.php @@ -1,41 +1,33 @@ getNsText( $row->rc_namespace ) ; if ( $ns ) { @@ -74,21 +66,13 @@ while (1) { $lastid = IntVal($row->rc_last_oldid); $flag = ($row->rc_minor ? "M" : "") . ($row->rc_new ? "N" : ""); if ( $row->rc_new ) { - $url = "http://$lang.wikipedia.org/wiki/" . urlencode($title); + $url = $newPageURLFirstPart . urlencode($title); } else { - $url = "http://$lang.wikipedia.org/w/wiki.phtml?title=" . urlencode($title) . + $url = $URLFirstPart . urlencode($title) . "&diff=0&oldid=$lastid"; } $boldTitle = $fmB . str_replace("_", " ", $title) . $fmB; - if ( $patterns ) { - foreach ( $patterns as $pattern ) { - if ( preg_match( $pattern, $comment ) ) { - print chr(7); - break; - } - } - } if ( $comment !== "" ) { $comment = "($comment)"; } -- 2.20.1